<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system.  The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);

/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/

define('FOPEN_READ',							'rb');
define('FOPEN_READ_WRITE',						'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE',		'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',	'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE',					'ab');
define('FOPEN_READ_WRITE_CREATE',				'a+b');
define('FOPEN_WRITE_CREATE_STRICT',				'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT',		'x+b');



define("ERROR_FORMAT", 'action:%s values:%s'); //constant use to format error message.
define('USER_ACTIVE', 'a');
define('USER_INACTIVE', 'i');
define('STORE_ACTIVE', 'a');
define('STORE_INACTIVE', 'i');
define('DATE_FORMAT', 'Y-m-d');
define('OK_STATUS', 'ok');
define('ERROR_STATUS', 'error');

define('AUTHENTICATION_REQUIRED_ERROR', 'AUTHENTICATION_REQUIRED_ERROR');
define('REGISTRATION_ERROR', 'REGISTRATION_ERROR');
define('LOGIN_ERROR', 'LOGIN_ERROR');
define('USER_GET_ERROR', 'USER_GET_ERROR');
define('EDIT_ERROR', 'EDIT_ERROR');
define('ADD_EMAIL_ERROR', 'ADD_EMAIL_ERROR');
define('DEL_EMAIL_ERROR', 'DEL_EMAIL_ERROR');
define('ADD_PHONE_ERROR', 'ADD_PHONE_ERROR');
define('DEL_PHONE_ERROR', 'DEL_PHONE_ERROR');
define('USER_DELETE_ERROR', 'USER_DELETE_ERROR');
define('USERS_GET_ERROR', 'USERS_GET_ERROR');
define('GET_EMAILS_ERROR', 'GET_EMAILS_ERROR');
define('GET_PHONES_ERROR', 'GET_PHONES_ERROR');

define('UNKNOWN_ERROR', 'UNKNOWN_ERROR');
define('SERVICE_NOT_FOUND_ERROR', 'SERVICE_NOT_FOUND_ERROR');

define('USERS_TABLE', 'users');
define('PRODUCTS_TABLE', 'products');
define('STORES_TABLE', 'stores');







/* End of file constants.php */
/* Location: ./application/config/constants.php */